home *** CD-ROM | disk | FTP | other *** search
/ Chip 1996 November / Chip 11-96.iso / treiber / grafik / elsa / winner / 1000isa / winnt35 / 1000wnt.exe / OEMSETUP.INF < prev    next >
INI File  |  1995-09-20  |  12KB  |  273 lines

  1. [Identification]
  2.     OptionType = VIDEO
  3. [LanguagesSupported]
  4.     ENG
  5. [Options]
  6.     "ELSA WINNER V3.01" = WINNER,   8, 640,  480   , 60 , 0
  7. [MapOfOptions]
  8.     "ELSA WINNER"                    = "ELSA WINNER"
  9. [MiniportDrivers]
  10.     WINNER   = !SERVICE_KERNEL_DRIVER, Video, !SERVICE_ERROR_IGNORE, 12, {WINNER}, 0 , %SystemRoot%\System32\IoLogMsg.dll , 7
  11. [OptionsTextENG]
  12.     "ELSA WINNER V3.01" =  "ELSA WINNER V3.01"
  13. [Identify]
  14.     read-syms Identification
  15.     set Status     = STATUS_SUCCESSFUL
  16.     set Identifier = $(OptionType)
  17.     set Media      = #("Source Media Descriptions", 1, 1)
  18.     Return $(Status) $(Identifier) $(Media)
  19. [ReturnOptions]
  20.     set Status        = STATUS_FAILED
  21.     set OptionList     = {}
  22.     set OptionTextList = {}
  23.     set LanguageList = ^(LanguagesSupported, 1)
  24.     Ifcontains(i) $($0) in $(LanguageList)
  25.         goto returnoptions
  26.     else
  27.         set Status = STATUS_NOLANGUAGE
  28.         goto finish_ReturnOptions
  29.     endif
  30. returnoptions = +
  31.     set OptionList     = ^(Options, 0)
  32.     set OptionTextList = ^(OptionsText$($0), 1)
  33.     set Status         = STATUS_SUCCESSFUL
  34. finish_ReturnOptions = +
  35.     Return $(Status) $(OptionList) $(OptionTextList)
  36. [MapToSupportedOption]
  37.     set Status = STATUS_FAILED
  38.     set MappedOption = $($0)
  39.     set OptionList = ^(MapOfOptions, 0)
  40.     ifcontains $($0) in $(OptionList)
  41.         set MappedOption = #(MapOfOptions, $($0), 1)
  42.     else
  43.         set MappedOption = "VGA"
  44.     endif
  45.     set Status = STATUS_SUCCESSFUL
  46.     Return $(Status) $(MappedOption)
  47. [ServicesEntry]
  48.     CurrentEntry = "" ? $(!LIBHANDLE) GetDevicemapValue Video \Device\Video0
  49. [InstallOption]
  50.     set Status       = STATUS_FAILED
  51.     set DrivesToFree = {}
  52.     set Option   = $($1)
  53.     set SrcDir   = $($2)
  54.     set AddCopy  = $($3)
  55.     set DoCopy   = $($4)
  56.     set DoConfig = $($5)
  57.     set LanguageList = ^(LanguagesSupported, 1)
  58.     Ifcontains(i) $($0) in $(LanguageList)
  59.     else
  60.         set Status = STATUS_NOLANGUAGE
  61.         goto finish_InstallOption
  62.     endif
  63.     read-syms Strings$($0)
  64.     set OptionList = ^(Options, 0)
  65.     ifcontains $(Option) in $(OptionList)
  66.     else
  67.         goto finish_InstallOption
  68.     endif
  69.     set OptionList = ""
  70.     set MiniportDriver    = #(Options, $(Option), 1)
  71.     set BitsPerPel        = #(Options, $(Option), 2)
  72.     set XResolution       = #(Options, $(Option), 3)
  73.     set YResolution       = #(Options, $(Option), 4)
  74.     set VRefresh          = #(Options, $(Option), 5)
  75.     set Interlaced        = #(Options, $(Option), 6)
  76.     set Type              = $(#(MiniportDrivers, $(MiniportDriver), 1))
  77.     set Group             =   #(MiniportDrivers, $(MiniportDriver), 2)
  78.     set ErrorControl      = $(#(MiniportDrivers, $(MiniportDriver), 3))
  79.     set Tag               =   #(MiniportDrivers, $(MiniportDriver), 4)
  80.     set InstalledDisplays =   #(MiniportDrivers, $(MiniportDriver), 5)
  81.     set VgaCompatible     =   #(MiniportDrivers, $(MiniportDriver), 6)
  82.     set EventMessageFile  =   #(MiniportDrivers, $(MiniportDriver), 7)
  83.     set TypesSupported    =   #(MiniportDrivers, $(MiniportDriver), 8)
  84.     read-syms ServicesEntry
  85.     detect    ServicesEntry
  86. installtheoption = +
  87.     ifstr(i) $(AddCopy) == "YES"
  88.         set DoActualCopy = NO
  89.         set FileToCheck = #(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  90.         LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\drivers\"$(FileToCheck)
  91.         ifstr(i) $(STATUS) == NO
  92.             set DoActualCopy = YES
  93.             goto addfiles
  94.         endif
  95.         ForListDo $(InstalledDisplays)
  96.             set FileToCheck = #(Files-DisplayDLLs, $($), 2)
  97.             LibraryProcedure STATUS,$(!LIBHANDLE),CheckFileExistance $(!STF_WINDOWSSYSPATH)"\"$(FileToCheck)
  98.             ifstr(i) $(STATUS) == NO
  99.                 set DoActualCopy = YES
  100.             endif
  101.         EndForListDo
  102. addfiles = +
  103.         ifstr(i) $(DoActualCopy) == NO
  104.             shell "subroutn.inf" DriversExist $($0) $(String1)
  105.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  106.                 Debug-Output "VIDEO.INF: shelling DriversExist failed"
  107.                 goto finish_InstallOption
  108.             endif
  109.             ifstr(i) $($R0) == STATUS_CURRENT
  110.             else-ifstr(i) $($R0) == STATUS_NEW
  111.                 set DoActualCopy = YES
  112.             else-ifstr(i) $($R0) == STATUS_USERCANCEL
  113.                 Debug-Output "VIDEO.INF: User cancelled video installation"
  114.                 goto finish_InstallOption
  115.             else
  116.                 Debug-Output "VIDEO.INF: Error reported in DriversExist routine in SUBROUTN.INF"
  117.                 goto finish_InstallOption
  118.             endif
  119.         endif
  120.         ifstr(i) $(DoActualCopy) == YES
  121.             shell "subroutn.inf" DoAskSourceEx $(SrcDir) $(String2)
  122.             ifint $($ShellCode) != $(!SHELL_CODE_OK)
  123.                 Debug-Output "VIDEO.INF: shelling DoAskSourceEx failed"
  124.                 goto finish_InstallOption
  125.             endif
  126.             ifstr(i) $($R0) == STATUS_SUCCESSFUL
  127.                 set SrcDir = $($R1)
  128.                 ifstr(i) $($R2) != ""
  129.                     set DrivesToFree = >($(DrivesToFree), $($R2))
  130.                 endif
  131.             else
  132.                 Debug-Output "VIDEO.INF: User cancelled asking source."
  133.                 goto finish_InstallOption
  134.             endif
  135.             install Install-AddCopyOption
  136.             ifstr(i) $(STF_INSTALL_OUTCOME) != "STF_SUCCESS"
  137.                 Debug-Output "VIDEO.INF: Adding video files to copy list failed"
  138.                 goto finish_InstallOption
  139.             endif
  140.         else
  141.             set DoCopy = NO
  142.         endif
  143.     endif
  144.     ifstr(i) $(DoCopy) == "YES"
  145.         read-syms ProgressCopy$($0)
  146.         install Install-DoCopyOption
  147.         ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_FAILURE"
  148.             Debug-Output "Copying files failed"
  149.             goto finish_InstallOption
  150.         else-ifstr(i) $(STF_INSTALL_OUTCOME) == "STF_USERQUIT"
  151.             set Status = STATUS_USERCANCEL
  152.             goto finish_InstallOption
  153.         endif
  154.     endif
  155.     ifstr(i) $(DoConfig) == "YES"
  156.         shell "registry.inf" CheckSetupModify
  157.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  158.             goto finish_InstallOption
  159.         endif
  160.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  161.             goto finish_InstallOption
  162.         endif
  163.         set ServiceNode   = $(MiniportDriver)
  164.         set ServiceBinary = %SystemRoot%\System32\drivers\#(Files-DisplayMiniportDrivers, $(MiniportDriver), 2)
  165.         set ServicesValues   = { +
  166.                 {Type,           0, $(!REG_VT_DWORD),     $(Type)                  }, +
  167.                 {Start,          0, $(!REG_VT_DWORD),     $(!SERVICE_SYSTEM_START) }, +
  168.                 {Group,          0, $(!REG_VT_SZ),        $(Group)                 }, +
  169.                 {ErrorControl,   0, $(!REG_VT_DWORD),     $(ErrorControl)          }, +
  170.                 {Tag,            0, $(!REG_VT_DWORD),     $(Tag)                   }, +
  171.                 {BinaryPathName, 0, $(!REG_VT_EXPAND_SZ), $(ServiceBinary)         }  +
  172.                 }
  173.         set ParametersValues = { +
  174.                 {InstalledDisplayDrivers,     0, $(!REG_VT_MULTI_SZ), $(InstalledDisplays) }, +
  175.                 {VgaCompatible,               0, $(!REG_VT_DWORD),    $(VgaCompatible)     }, +
  176.                 {DefaultSettings.BitsPerPel,  0, $(!REG_VT_DWORD),    $(BitsPerPel)        }, +
  177.                 {DefaultSettings.XResolution, 0, $(!REG_VT_DWORD),    $(XResolution)       }, +
  178.                 {DefaultSettings.YResolution, 0, $(!REG_VT_DWORD),    $(YResolution)       }  +
  179.                 }
  180.         ifstr(i) $(VRefresh) != ""
  181.             set VRefreshValue = {DefaultSettings.VRefresh, 0, $(!REG_VT_DWORD), $(VRefresh)}
  182.             set ParametersValues = >($(ParametersValues), $(VRefreshValue))
  183.         endif
  184.         ifstr(i) $(Interlaced) != ""
  185.             set InterlacedValue = {DefaultSettings.Interlaced, 0, $(!REG_VT_DWORD), $(Interlaced)}
  186.             set ParametersValues = >($(ParametersValues), $(InterlacedValue))
  187.         endif
  188.         set DeviceValues     = {}
  189.         set EventLogValues   = { +
  190.                 {EventMessageFile, 0, $(!REG_VT_EXPAND_SZ), $(EventMessageFile) }, +
  191.                 {TypesSupported,   0, $(!REG_VT_DWORD),     $(TypesSupported)   }  +
  192.                 }
  193.         shell "registry.inf"  MakeServicesEntry $(ServiceNode)      +
  194.                                                 $(ServicesValues)   +
  195.                                                 $(ParametersValues) +
  196.                                                 $(DeviceValues)     +
  197.                                                 $(EventLogValues)   +
  198.                                                 Device0
  199.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  200.             Debug-Output "Couldn't execute MakeServicesEntry in registry.inf"
  201.             goto finish_InstallOption
  202.         endif
  203.         ifstr(i) $($R0) != STATUS_SUCCESSFUL
  204.             Debug-Output "MakeServicesEntry failed for video"
  205.             goto finish_InstallOption
  206.         endif
  207.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  208.             ifstr(i) $(CurrentEntry) != VGA
  209.                 ifstr(i) $(CurrentEntry) != ""
  210.                     shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_DISABLED)
  211.                     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  212.                         Debug-Output "Couldn't find DisableServicesEntry in registry.inf"
  213.                         goto errorconfig
  214.                     endif
  215.                     ifstr(i) $($R0) != STATUS_SUCCESSFUL
  216.                         Debug-Output "DisableServices entry failed"
  217.                     endif
  218.                 endif
  219.             endif
  220.         endif
  221.         goto configdone
  222. errorconfig = +
  223.         ifstr(i) $(CurrentEntry) != $(MiniportDriver)
  224.             shell "registry.inf" ModifyServicesEntry $(MiniportDriver) $(!SERVICE_DISABLED)
  225.             ifstr(i) $(CurrentEntry) != ""
  226.                 shell "registry.inf" ModifyServicesEntry $(CurrentEntry) $(!SERVICE_SYSTEM_START)
  227.             endif
  228.         endif
  229.         goto finish_InstallOption
  230. configdone = +
  231.     endif
  232.     set Status = STATUS_SUCCESSFUL
  233. finish_InstallOption = +
  234.     ForListDo $(DrivesToFree)
  235.         LibraryProcedure STATUS,$(!LIBHANDLE), DeleteNetConnection $($) "TRUE"
  236.     EndForListDo
  237.     Return $(Status)
  238. [Install-AddCopyOption]
  239.     set STF_VITAL = ""
  240.     AddSectionKeyFileToCopyList   Files-DisplayMiniportDrivers   +
  241.                                   $(MiniportDriver)              +
  242.                                   $(SrcDir)                      +
  243.                                   $(!STF_WINDOWSSYSPATH)\drivers
  244.     ForListDo $(InstalledDisplays)
  245.         AddSectionKeyFileToCopyList   Files-DisplayDLLs          +
  246.                                       $($)                       +
  247.                                       $(SrcDir)                  +
  248.                                       $(!STF_WINDOWSSYSPATH)
  249.     EndForListDo
  250.     exit
  251. [Install-DoCopyOption]
  252.     CopyFilesInCopyList
  253.     exit
  254. [ProgressCopyENG]
  255.     ProCaption   = "Windows NT Setup"
  256.     ProCancel    = "Cancel"
  257.     ProCancelMsg = "Windows NT is not correcly installed.  Are you sure you want "+
  258.                    "to cancel copying files?"
  259.     ProCancelCap = "Setup Message"
  260.     ProText1     = "Copying:"
  261.     ProText2     = "To:"
  262. [StringsENG]
  263.     String1 = "Display"
  264.     String2 = "Please enter the full path to the WINNER display driver "+
  265.               "driver files.  Then choose Continue."
  266. [Source Media Descriptions]
  267.     1  = "WINNER 1000/2000  Windows 3.5 / Windows NT"  , TAGFILE = disk1
  268. [Files-DisplayDLLs]
  269. WINNER   = 1,WINNER.DLL , SIZE=99999
  270. [Files-DisplayMiniportDrivers]
  271. WINNER   = 1,WINNER.SYS , SIZE=99999
  272. 12
  273.